/**
 * 后台线程每秒刷新需要热加载的类（BaseManager的实现类）
 *
 * @author YooLin1c
 * @version 1.0.0
 * @since 2018-03-05 13:25
 */
public class HotLoadingWatcher implements Runnable {
    @Override
    public void run() {
        while (true) {
            BaseManager manager = ManagerFactory.getManager(ManagerFactory.MY_MANAGER);
            manager.logic();
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
